package bodyMassIndex;

import java.io.PrintStream;
import java.util.Scanner;
import ui.UIHulpMethodes;
public class BodyMassIndex {
	PrintStream out;
	BodyMassIndex(){
		out = new PrintStream(System.out);
		UIHulpMethodes.vraagGebruikerOmInvoer();
	}
	
	void start(){
		Scanner in = new Scanner(System.in);
		in.next();
		Persoon persoon1 = new Persoon(in.next(),in.next().charAt(0),in.nextDouble(),in.nextInt());
		in.next();
		Persoon persoon2 = new Persoon(in.next(),in.next().charAt(0),in.nextDouble(),in.nextInt());
		out.printf("%s %s's BMI is %.2f and is %s.\n",persoon1.bepaalAanhef(),persoon1.achternaam,persoon1.berekenBMI(),persoon1.bepaalGezondheid());
		out.printf("%s %s's BMI is %.2f and is %s.\n",persoon2.bepaalAanhef(),persoon2.achternaam,persoon2.berekenBMI(),persoon2.bepaalGezondheid());

	}
	
	public static void main(String[] args) {
		new BodyMassIndex().start();
	}

}
